home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-08 | 2.1 KB | 47 lines | [TEXT/ALFA] |
-
- Source
- ===============================================================================
- This code is evidently based on a port to the Mac via the QUED folk.
- However, the GNU copyleft, under which source to GNU's 'diff' is
- distributed, requires anyone who modifies and redistributes GNU sources to
- make their changes available as well. Therefore, to my knowledge, this
- redistribution does not violate any copyrights of QUED.
-
-
-
- What I have done
- ===============================================================================
- I hacked these sources to give 'diff' a Apple Event interface instead of
- the previous dialog interface. 'diff' now processes a single doscript
- ('DOSC') event and quits. The doscript event consists of the command line
- arguments that would have been passed to 'diff' had this been on Unix.
- There's also a hack to allow filenames to be delimited by double quotes.
- 'diff' is now used as a diff tool by the Alpha text editor.
-
-
- What I have not done
- ===============================================================================
- Just about everything. In order to get this source to compile you will
- need to find the POSIX library headers. As far as I know, this library was
- most recently modified by Ray Johnson (currently works with John Ousterhout
- at Sun Labs). Many incorrect inputs will cause 'diff' to crash, almost all
- will cause it to at least exit without informing anyone of the reason. The
- current version is not robust! However, if you supply it with correct
- parameters, it *seems* to work...
-
- Only one event is executed because 'diff' is not designed to handle
- multiple sets of inputs. Much hacking is needed. Error handling does not
- work well because the original source just printed to stderr and exited
- whenever something bad happened. In order to return useful information on
- error, exits have to be turned into error-code returns, and each routine
- that calls another that may exit must check the func's return value and
- return an error code itself.
-
-
- What you can do
- ===============================================================================
- Fix all of the above, and redistribute the source.
-
-
- Pete Keleher
-